<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
<%@page import="java.util.List"%>
<%@page import="java.util.Iterator"%>

<portlet:defineObjects />

<script type="text/javascript">
	$(document).ready(
			function() {
				$('.layout_id').click(function() {
					alert("Handler for .click() called.");
				});
				
			});
</script>

<c:forEach items="${layouts}" var="layout">
	<li class="layout_id" id="${layout.id}">${layout.name} <span>edit</span></li>
</c:forEach>

<div id="layout_edit">
	<input name="name" value="" />
</div>

<form method="post" action="<portlet:actionURL/>">
	<input type="text" name="layout" /> <input type="submit" />
</form>

